# 可写函数说明
sum = lambda arg1,arg2:arg1 + arg2

# 调用sum函数
print("agter plus:",sum(10,20))
print("agter plus:",sum(30,80))

tolal = 0 # its a global var
# can wirte def
def sum2(arg1,arg2):
    #return sum of 2 var
    tolal = arg1 + arg2 # totla is a local var here
    print("int the function its a local var:",tolal)
    return tolal
sum2(50,80)
print("outsiede the funciton its a global var:" , tolal)